package com.diandi.signature.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类基类
 * @author mwz
 * @create 2017-08-23 14:03
 * @version V1.0.0
 */
public class BaseEntity implements Serializable {


	/**
	 * 
	 */
	private static final long serialVersionUID = 2172652318500894145L;

	private Long id;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	public Date insertTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;

	/*备注*/
	private String remarks;

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime() {
		this.updateTime = new Date();
	}

	public Date getInsertTime() {
		return insertTime;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public void setInsertTime(Date insertTime) {
		this.insertTime = insertTime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "BaseEntity{" + "id=" + id + ", createTime=" + insertTime + ", updateTime="
				+ updateTime + ", remarks=" + remarks + '}';
	}
}
